package com.dao;

import com.domain.PromotionAd;

import java.util.List;

public interface PromotionAdMapper {
    /*
    * 分页查询
    * */
    public List<PromotionAd> findAllPromotionAdByPage();

    /*
    * 添加广告
    * */
    public void savePromotionAd(PromotionAd promotionAd);

    /*
    * 修改广告
    * */
    public void updatePromotionAd(PromotionAd promotionAd);
    /*
    * 回显广告
    * */
    public PromotionAd findPromotionAdById(int id);

    /*
    * /修改广告状态
    * */
    public void updatePromotionAdStatus(PromotionAd promotionAd);
}
